Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix service zero tolerance numerical issue #329

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

renan028
Copy link
Contributor

@renan028 renan028 commented Sep 13, 2023

Description

In the callServiceFindValidPose service we use tf utility functions to convert quarternion to yaw back and forth: tf::getYaw and tf::createQuaternionMsgFromYaw because of the FreePoseSearch class interfaces.

This can lead to numerical issues. For example, when the starting angle for the search is the solution, the original angle (service request) can be slightly different from the output (service response) because of the conversions.

Adding a check to fix the numerical issue: if the difference from input to output is less than the ANGLE_INCREMENT, we use the input angle without conversions.

Copy link
Collaborator

@corot corot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Collaborator

@corot corot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@corot corot self-requested a review September 14, 2023 09:38
@corot corot merged commit 3dedf54 into naturerobots:master Sep 22, 2023
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants